home *** CD-ROM | disk | FTP | other *** search
- COMMENT *
-
-
- XEQ
- -----
- XEQ - COM File Library and Command Executor
-
- This program allows COM files to be stored inside XEQ's code and executed
- by the command:
- XEQ command
- For example, if BEEP.COM has been added to XEQ then:
- XEQ BEEP
- will execute the BEEP program stored inside XEQ. The original BEEP.COM
- can be removed from the hard disk (onto a backup floppy!!!). If the
- specified command is not in XEQ it is passed to the DOS for execution as
- if directly typed at the DOS prompt.
-
- PURPOSE
- The purpose is to prevent wasted hard-disk space by those pesky
- little COM files we don't seem to be able to do without. When hard disks
- are formatted they are given an allocation size (called a cluster size)
- and this is typically 2048 or 4096 bytes. So when you save a 7 byte
- COM file like BEEP.COM, it takes up a full cluster. By combining these
- COM files into this program or LIBRARY, several COM files can be stored
- in one file (the XEQ program itself) and still accessed without this waste
- in hard disk space.
-
- In order to make the body of XEQ as small as possible, only a limited
- number of options are available. They are
-
- XEQ [/R]<command> Execute <command> if it is in the library
- or passes it to DOS for execution if not
- XEQ /A(command> Add <command>.COM to library if not existant
- XEQ /D<command> Delete command from library if existant
- XEQ /E<command> Extract command from library to .COM file if existant
- XEQ /L List the <commands> in the library
-
- When the /E switch is used to extract a COM file, a full path for the
- resulting file may be specified. If the file already exists at that location,
- extraction does not occur. The extracted file has the same date stamp as the
- COM file it was originally stored from.
-
- LIMITATIONS
- As a COM file can only be 64K long, command COM files cannot
- be added to XEQ if this figure would be violated, as XEQ is a COM file
- itself. The /L command indicates the amount of space left and any
- attempt to add a file which would exceed the 64k limit is prevented. Any
- number of COM files can be added until this number is reached.
- When a command is added or deleted from XEQ, a new copy of XEQ must
- be rewritten to disk. This is always written to the current drive
- and directory regardless of where the original copy of XEQ was found
- (it may have been loaded from elsewhere because of DOS's path
- capability). Therefore to update the original copy of XEQ, the /D or /A
- commands should be performed in the drive and directory of the
- original. If not, then the original copy of XEQ will still exist in its
- original location and the updated version in the current drive and
- directory.
- The new version of XEQ will always be called XEQ.COM, regardless
- of whether the original program was called XEQ.COM or not. It is
- intended that only one library XEQ.COM will exist on the system. This
- is based on the likelihood that the sum of all the small COM files
- will not exceed the 64K limit of the XEQ.COM library file. Several COM
- libraries can exist on the same system by renaming an XEQ.COM to
- something else.
- However, this appears cumbersome as it would be necessary to remember
- which commands are in which library. Also any add or delete from the
- renamed library file results in the new copy being called XEQ.COM. Care
- would have to be taken to prevent the overwriting of a legitimate
- XEQ.COM, and the new XEQ.COM would have to be renamed to the original
- name of the revised library.
-
- USAGE TIP:
- The CED utility and its synonym feature can make the use of XEQ
- transparent in use. For example, if BEEP.COM is stored inside XEQ then a
- synonym like
- SYN BEEP XEQ BEEP
- will cause BEEP to be run out of the XEQ file just by entering BEEP.
-
- Disclaimer:
- Hardwood Software Associates guarantees XEQ.COM will do NOTHING
- useful at all. You use it at your own risk (make backups of the COM files
- stored within XEQ before deleting them from your hard disk). However, it
- seems to perform as described here and may be of use to you.
-
- ======================================================================
- *